\usepackage[utf8]{inputenc}  % UTF-8 input encoding

% UNICODE conversion
% greek letters

% Α α Β β Γ γ Δ δ Ε ε Ζ ζ Η η Θ θ Ι ι Κ κ Λ λ Μ μ Ν ν Ξ ξ Ο ο Π π Ρ ρ Σ σ Τ τ Υ υ Φ φ Χ χ Ψ ψ Ω ω

\DeclareUnicodeCharacter{03B1}{\ensuremath{\alpha}}
\DeclareUnicodeCharacter{03B2}{\ensuremath{\beta}}
\DeclareUnicodeCharacter{03B3}{\ensuremath{\gamma}}
\DeclareUnicodeCharacter{0393}{\ensuremath{\Gamma}}
\DeclareUnicodeCharacter{03B4}{\ensuremath{\delta}}
\DeclareUnicodeCharacter{0394}{\ensuremath{\Delta}}
\DeclareUnicodeCharacter{03B5}{\ensuremath{\varepsilon}}
\DeclareUnicodeCharacter{03B6}{\ensuremath{\zeta}}
\DeclareUnicodeCharacter{03B7}{\ensuremath{\eta}}
\DeclareUnicodeCharacter{03B8}{\ensuremath{\vartheta}}
\DeclareUnicodeCharacter{0398}{\ensuremath{\Theta}}
\DeclareUnicodeCharacter{03BA}{\ensuremath{\kappa}}
\DeclareUnicodeCharacter{03BB}{\ensuremath{\lambda}}
\DeclareUnicodeCharacter{039B}{\ensuremath{\Lambda}}
\DeclareUnicodeCharacter{00B5}{\ensuremath{\mu}}      % micron sign
\DeclareUnicodeCharacter{03BC}{\ensuremath{\mu}}
\DeclareUnicodeCharacter{03BD}{\ensuremath{\nu}}
\DeclareUnicodeCharacter{03BE}{\ensuremath{\xi}}
\DeclareUnicodeCharacter{039E}{\ensuremath{\Xi}}
\DeclareUnicodeCharacter{03B9}{\ensuremath{\iota}}
\DeclareUnicodeCharacter{03C0}{\ensuremath{\pi}}
\DeclareUnicodeCharacter{03A0}{\ensuremath{\Pi}}
\DeclareUnicodeCharacter{03C1}{\ensuremath{\rho}}
\DeclareUnicodeCharacter{03C3}{\ensuremath{\sigma}}
\DeclareUnicodeCharacter{03A3}{\ensuremath{\Sigma}}
\DeclareUnicodeCharacter{03C4}{\ensuremath{\tau}}
\DeclareUnicodeCharacter{03C6}{\ensuremath{\varphi}}
\DeclareUnicodeCharacter{03A6}{\ensuremath{\Phi}}
\DeclareUnicodeCharacter{03C7}{\ensuremath{\chi}}
\DeclareUnicodeCharacter{03C8}{\ensuremath{\psi}}
\DeclareUnicodeCharacter{03A8}{\ensuremath{\Psi}}
\DeclareUnicodeCharacter{03C9}{\ensuremath{\omega}}
\DeclareUnicodeCharacter{03A9}{\ensuremath{\Omega}}
\DeclareUnicodeCharacter{03C5}{\ensuremath{\upsilon}}
\DeclareUnicodeCharacter{03A5}{\ensuremath{\Upsilon}}

% some modified characters
\DeclareUnicodeCharacter{1FF6}{\ensuremath{\tilde{\omega}}}

% useful math symbols
\DeclareUnicodeCharacter{221A}{\sqrt}
\DeclareUnicodeCharacter{2264}{\leq}
\DeclareUnicodeCharacter{2265}{\geq}
\DeclareUnicodeCharacter{221E}{\infty}
\DeclareUnicodeCharacter{2211}{\sum}
\DeclareUnicodeCharacter{2208}{\in}
\DeclareUnicodeCharacter{2209}{\notin}
\DeclareUnicodeCharacter{2202}{\partial}
\DeclareUnicodeCharacter{222B}{\int}
\DeclareUnicodeCharacter{2148}{\id}  
\DeclareUnicodeCharacter{2248}{\approx}  
\DeclareUnicodeCharacter{2260}{\neq}  
\DeclareUnicodeCharacter{00B1}{\pm}  
\DeclareUnicodeCharacter{2A02}{\otimes}
\DeclareUnicodeCharacter{2A01}{\oplus}
\DeclareUnicodeCharacter{00BD}{\nicefrac{1}{2}}
\DeclareUnicodeCharacter{00D7}{\times}
\DeclareUnicodeCharacter{00B7}{\cdot}
\DeclareUnicodeCharacter{22C5}{\cdot}
\DeclareUnicodeCharacter{2190}{\gets}

% the prime
\DeclareUnicodeCharacter{2032}{\ensuremath{'}}

% daggers don't need to be preceded by a '^' anymore
\DeclareUnicodeCharacter{2020}{^{\dagger}}
\DeclareUnicodeCharacter{1D40}{^{\textnormal{\tiny{T}}}}
\DeclareUnicodeCharacter{00B2}{^{2}}
\DeclareUnicodeCharacter{00B3}{^{3}}
\DeclareUnicodeCharacter{00BD}{\ensuremath{\frac{1}{2}}\xspace}

% bracket heaven
\DeclareUnicodeCharacter{2329}{\langle}
\DeclareUnicodeCharacter{232A}{\rangle}
\DeclareUnicodeCharacter{27E8}{\langle}
\DeclareUnicodeCharacter{27E9}{\rangle}
\DeclareUnicodeCharacter{2016}{\|}

% fun with arrows
\DeclareUnicodeCharacter{2192}{\to}
\DeclareUnicodeCharacter{21D2}{\implies}
\DeclareUnicodeCharacter{21A6}{\mapsto}
\DeclareUnicodeCharacter{21A9}{\hookleftarrow}

% specialized math letters
\DeclareUnicodeCharacter{2113}{\ell}
\DeclareUnicodeCharacter{210B}{\h}
\DeclareUnicodeCharacter{2115}{\bN}
\DeclareUnicodeCharacter{211D}{\bR}
\DeclareUnicodeCharacter{2102}{\bC}
\DeclareUnicodeCharacter{2119}{\Pr}
\DeclareUnicodeCharacter{2130}{\sE}
\DeclareUnicodeCharacter{2133}{\cM}

% other notation
\DeclareUnicodeCharacter{00B7}{\ensuremath{\cdot}\xspace}
\DeclareUnicodeCharacter{2261}{\ensuremath{\equiv}\xspace}
